import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SMoney
    
    export  class SMoney extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        
        {
            SMoney._regist = new SMoney(true);
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SMoney();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.coin);
            arg1.writeInt(this.coinBind);
            arg1.writeInt(this.gold);
            arg1.writeInt(this.goldBind);
            arg1.writeInt(this.honour);
            arg1.writeInt(this.arena);
            arg1.writeInt(this.prestige);
            arg1.writeInt(this.point);
            arg1.writeInt(this.interHonour);
            arg1.writeInt(this.magicStone);
            arg1.writeInt(this.merit);
            arg1.writeInt(this.petCoin);
            arg1.writeInt(this.brokenSoul);
            arg1.writeInt(this.integralOne);
            arg1.writeInt(this.integralTwo);
            arg1.writeInt(this.warehouseGold);
            arg1.writeInt(this.warehouseCoin);
            arg1.writeInt(this.countryContribution);
            arg1.writeInt(this.robFlagHonour);
            arg1.writeInt(this.robIslandCoin);
            arg1.writeInt(this.spiritCoin);
            arg1.writeInt(this.ladderCoin);
            arg1.writeInt(this.arenaCrossCoin);
            arg1.writeInt(this.integralThree);
            arg1.writeInt(this.dominionCoin);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.coin = arg1.readInt();
            this.coinBind = arg1.readInt();
            this.gold = arg1.readInt();
            this.goldBind = arg1.readInt();
            this.honour = arg1.readInt();
            this.arena = arg1.readInt();
            this.prestige = arg1.readInt();
            this.point = arg1.readInt();
            this.interHonour = arg1.readInt();
            this.magicStone = arg1.readInt();
            this.merit = arg1.readInt();
            this.petCoin = arg1.readInt();
            this.brokenSoul = arg1.readInt();
            this.integralOne = arg1.readInt();
            this.integralTwo = arg1.readInt();
            this.warehouseGold = arg1.readInt();
            this.warehouseCoin = arg1.readInt();
            this.countryContribution = arg1.readInt();
            this.robFlagHonour = arg1.readInt();
            this.robIslandCoin = arg1.readInt();
            this.spiritCoin = arg1.readInt();
            this.ladderCoin = arg1.readInt();
            this.arenaCrossCoin = arg1.readInt();
            this.integralThree = arg1.readInt();
            this.dominionCoin = arg1.readInt();
            return;
        }

        public /* const */_type: int=12003;

        public /* var */coin: int;

        public /* var */coinBind: int;

        public /* var */gold: int;

        public /* var */goldBind: int;

        public /* var */honour: int;

        public /* var */arena: int;

        public /* var */prestige: int;

        public /* var */point: int;

        public /* var */interHonour: int;

        public /* var */magicStone: int;

        public /* var */merit: int;

        public /* var */petCoin: int;

        public /* var */brokenSoul: int;

        public /* var */integralOne: int;

        public /* var */integralTwo: int;

        public /* var */spiritCoin: int;

        public /* var */ladderCoin: int;

        public /* var */arenaCrossCoin: int;

        public /* var */integralThree: int;

        public /* var */dominionCoin: int;

        public /* var */warehouseCoin: int;

        public /* var */countryContribution: int;

        public /* var */robFlagHonour: int;

        public /* var */robIslandCoin: int;

        public static /* var */_regist: SMoney;

        public /* var */warehouseGold: int;
    }
